package org.jeecg.modules.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.MessageDataInfo;
import org.jeecg.modules.system.entity.SysAnnouncement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @Description: 系统通告表
 * @Author: jeecg-boot
 * @Date:  2019-01-02
 * @Version: V1.0
 */
public interface SysAnnouncementMapper extends BaseMapper<SysAnnouncement> {


	List<SysAnnouncement> querySysCementListByUserId(Page<SysAnnouncement> page, @Param("userId")String userId,@Param("msgCategory")String msgCategory);

	/**消息列表*/
	IPage<MessageDataInfo> query_msgPageList(@Param("page")Page<MessageDataInfo> page, @Param("queryName")String queryName, @Param("type")String type);
	/**消息详情*/
	MessageDataInfo query_msgDetailByid(@Param("msg_id")String msg_id);
	/**添加消息*/
	int add_message(MessageDataInfo message);
	/**编辑消息*/
	int update_message(MessageDataInfo message);
	/**删除消息*/
	int delete_message(@Param("msg_id")String msg_id,@Param("is_fs")String is_fs);

}
